Fix bug (layout wasn't going to 1 line)
authorjustbur <justin@burkett.cc>
Fri, 10 Jul 2015 15:56:15 +0000 (11:56 -0400)
committerjustbur <justin@burkett.cc>
Fri, 10 Jul 2015 15:56:15 +0000 (11:56 -0400)
which-key.el

index f15bcc18fe350c85c4a4ea065df2a328bd462091..088f55436bd99224eecd54562370d798858b1a42 100644 (file)
@@ -611,7 +611,7 @@ the maximum number of lines availabel in the target buffer."
               next-try-lines (- next-try-lines 1)
               next-try (which-key/create-page-vertical next-try-lines max-width key-cns)
               n-rem-keys (length (nth 3 next-try))
-              found (or (= next-try-lines 1) (> n-rem-keys 0))))
+              found (or (= next-try-lines 0) (> n-rem-keys 0))))
       prev-try)))
 
 ;; start on binary search (not correct yet)